﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Dangky.aspx.cs" Inherits="Thv.trangchu.page.Dangky" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="dii" runat="server" visible="false" style="width:100%;padding-top:100px;padding-left:50px; font-weight:bold; color:Blue">
        Chúc mừng bạn đã đăng ký thành cồng tại hệ thống msmart.vn
    </div>
    <div>
        <table>
            <tr>
                <td style="width:5%"></td>
                <td style="width:15%">
                    <dx:ASPxLabel ID="lberoo" runat="server" Text="Thông báo!" Visible="false" ForeColor="Red">
                    </dx:ASPxLabel>
                </td>
                <td style="width:80%">
                 <dx:ASPxLabel ID="lbThongbao" runat="server" Text="" Visible="false" ForeColor="Red">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>Tên đăng nhập</td>
                <td>
                    <dx:ASPxTextBox ID="txtUser" runat="server" Width="230px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        MaxLength="50">
                        <ValidationSettings Display="Dynamic"  SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-IsRequired="True" RequiredField-ErrorText="Tên đăng nhập không được rỗng">
                            <RegularExpression ErrorText="Tên đăng nhập phải từ 6 ký tự trở lên" 
                                ValidationExpression="[^\s]{6,50}" />
<RequiredField IsRequired="True" ErrorText="T&#234;n đăng nhập kh&#244;ng được rỗng"></RequiredField>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>Email</td>
                <td><dx:ASPxTextBox ID="txtEmai" runat="server" Width="230px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        MaxLength="50">
                        <ValidationSettings Display="Dynamic"  SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập email">
                            <RegularExpression ErrorText="Email không hợp lệ" 
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
<RequiredField IsRequired="True" ErrorText="Bạn chưa nhập email"></RequiredField>
                        </ValidationSettings>
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>Mật khẩu</td>
                <td><dx:ASPxTextBox ID="txtPass" runat="server" Width="230px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        Password="True" MaxLength="50">
                        <ValidationSettings Display="Dynamic"  SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập mật khẩu">
                            <RegularExpression ErrorText="Mật khẩu phải từ 6 ký tự trở lên" 
                                ValidationExpression="[^\s]{6,50}" />
<RequiredField IsRequired="True" ErrorText="Bạn chưa nhập mật khẩu"></RequiredField>
                        </ValidationSettings>
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>Nhập lại MK</td>
                <td><dx:ASPxTextBox ID="txtPass2" runat="server" Width="230px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        Password="True" MaxLength="50">
                        <ValidationSettings Display="Dynamic" ErrorText="*" SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-IsRequired="True" RequiredField-ErrorText="Nhập lại mật khẩu">
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtPass2" ControlToValidate="txtPass" 
                        ErrorMessage="CompareValidator" ForeColor="#CC0000" ValidationGroup="gr1">Mật khẩu không khớp</asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>Họ và chữ lót </td>
                <td><dx:ASPxTextBox ID="txtfisnam" runat="server" Width="230px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        MaxLength="50">
                        <ValidationSettings Display="Dynamic"  SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập họ và chữ lót">
                        </ValidationSettings>
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>Tên </td>
                <td><dx:ASPxTextBox ID="txtTen" runat="server" Width="230px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        MaxLength="50">
                        <ValidationSettings Display="Dynamic"  SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập tên">
                        </ValidationSettings>
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>Ngày sinh</td>
                <td>
                    <dx:ASPxComboBox ID="cbNgay" runat="server" Width="70px" 
                        style="float:left; margin-right:10px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" Spacing="0" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        ValueType="System.String">
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                    </dx:ASPxComboBox>
                    <dx:ASPxComboBox ID="cbThang" runat="server" Width="70px" 
                        style="float:left;margin-right:10px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" Spacing="0" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        ValueType="System.String">
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                    </dx:ASPxComboBox>
                    <dx:ASPxComboBox ID="cbNam" runat="server" Width="70px" style="float:left" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" Spacing="0" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        ValueType="System.String">
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                    </dx:ASPxComboBox>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>Số cmnd </td>
                <td><dx:ASPxTextBox ID="txtCMND" runat="server" Width="170px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        MaxLength="9">
                        <MaskSettings Mask="000000000" />
                        <ValidationSettings Display="Dynamic"  SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-ErrorText="Bạn chưa nhập số CMND" RequiredField-IsRequired="True">
<RequiredField IsRequired="True" ErrorText="Bạn chưa nhập số CMND"></RequiredField>
                        </ValidationSettings>
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>Địa chỉ</td>
                <td><dx:ASPxTextBox ID="txtAdress" runat="server" Width="300px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        MaxLength="200">
                        <ValidationSettings Display="Dynamic"  SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập địa chỉ">
                        </ValidationSettings>
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>Số điện thoại</td>
                <td><dx:ASPxTextBox ID="txtPhone" runat="server" Width="170px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <ValidationSettings Display="Dynamic" ErrorText="*" SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập điện thoại">
                            <RegularExpression ErrorText="Điện thoại không hợp lệ" 
                                ValidationExpression="0\d{9,10}" />
<RequiredField IsRequired="True" ErrorText="Bạn chưa nhập điện thoại"></RequiredField>
                        </ValidationSettings>
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>Giới tính</td>
                <td>
                    <dx:ASPxComboBox ID="cbGioitinh" runat="server" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        ValueType="System.String">
                        <Items>
                            <dx:ListEditItem Selected="True" Text="Nam" Value="Nam" />
                            <dx:ListEditItem Text="Nữ" Value="Nữ" />
                        </Items>
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                    </dx:ASPxComboBox>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>Người giới thiệu</td>
                <td><dx:ASPxTextBox ID="txtIntroduct" runat="server" Width="170px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <ValidationSettings Display="Dynamic" ErrorText="*" SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập người giới thiệu">
                        </ValidationSettings>
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>Người chỉ định</td>
                <td><dx:ASPxTextBox ID="txtChidinh" runat="server" Width="170px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <ValidationSettings Display="Dynamic" ErrorText="*" SetFocusOnError="True" 
                            ValidationGroup="gr1" RequiredField-ErrorText="Bạn chưa nhập người chỉ định" RequiredField-IsRequired="True">
                        </ValidationSettings>
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>Cấp bậc</td>
                <td>
                    <dx:ASPxComboBox ID="cbCapbac" runat="server" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        ValueType="System.String">
                        <Items>
                            <dx:ListEditItem Selected="True" Text="Thành Viên" Value="Thành Viên" />
                            <dx:ListEditItem Text="Cộng Tác Viên" Value="Cộng Tác Viên" />
                        </Items>
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                    </dx:ASPxComboBox>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>Thẻ ngân hàng</td>
                <td><dx:ASPxTextBox ID="txtVisa" runat="server" Width="170px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>Tên ngân hàng</td>
                <td><dx:ASPxTextBox ID="txtTennganhang" runat="server" Width="300px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    </dx:ASPxTextBox></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td>
                    <dx:ASPxButton ID="btn" runat="server" Text="Đăng ký" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" onclick="btn_Click" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" ValidationGroup="gr1">
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
